package com.shruijin.wy.thread.tl;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class RequestThreadLocalObject {

    private final static ThreadLocal threadLocal = new ThreadLocal();

    public static void set(Object object){
        log.info("set the value {}",object);
        threadLocal.set(object);
    }

    public static Object get(){
        log.info("get the value!");
        return threadLocal.get();
    }

    public static void clear(){
        log.info("clear the value!");
        threadLocal.remove();
    }
}
